package com.smgeek.gkrpc.codec;

import com.alibaba.fastjson.JSON;

/**
 * @ClassName JSONDecoder
 * @Author wuyuyang
 * @Date 2022/1/6 14:57
 * @Description JSONDecoder
 * @Version 1.0
 */
public class JSONDecoder implements Decoder {
    @Override
    public <T> T decode(byte[] bytes, Class<T> clazz) {
        return JSON.parseObject(bytes, clazz);
    }
}
